<?
include_once("../wetter/simple_html_dom.php");

include_once("download.inc.php");


$article = download("http://www.wetteronline.de","/wotexte/redaktion/trend/"
.date("Y").
"/" . 
date("m") .
"/"
.date("m").date("d").
"_symbole.js");
 


$article = preg_replace('/(class=".+?)+(")/i', '', $article);
$article = preg_replace('/(align=".+?)+(")/i', '', $article);



//
//
//$article = str_replace("h1", "h3",$article );
//$article = str_replace("ü", "&uuml;",$article );
//$article = str_replace("ö", "&ouml;",$article );
//$article = str_replace("ä", "&auml;",$article );
//$article = str_replace("Ü", "&Uuml;",$article );
//$article = str_replace("Ä", "&Auml;",$article );


$article = str_replace('size="2"', 'size="4"',$article );

$article = str_replace("document.write('", "",$article );
$article = str_replace("');", "",$article );
$article = str_replace("<!--", "",$article );
$article = str_replace("-->", "",$article );
$article = str_replace("<tr v ", "<tr ",$article );
$article = str_replace("<b>ziemlich sicher</b>", "<img src='images/gruen.png' />",$article );
$article = str_replace("<b>weniger sicher</b>", "<img src='images/gelb.png' />",$article );
$article = str_replace("<b>unsicher</b>", "<img src='images/rot.png' />",$article );

$article = str_replace("280", "100%",$article );
 
//echo $article;
$html = str_get_html($article);

$warnungen ="";
?>
<table width='100%'>
<?
foreach($html->find('tr[bgcolor=#eeeeee]') as $article) {
echo $article->outertext;
}
?>
</table>